package com.easycoding.framework.config;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;



/**
 * <b>Description</b>:获取应用配置信息<br/>
 
 * <b>Create Date</b>: 2013-4-1 下午12:32:41<br/>
 * <b>Version</b>: Since JDK 1.6.0<br/>
 * <b>Package</b>: com.easycoding.bocai.config
 */
public class AppConfigHelper {
	
	private static Map<String,String> appConfigInfo;
	
	public static String getValue(String key){
		return appConfigInfo.get(key);
	}
	
	public static void setAppConfigInfo(Properties properties){
		appConfigInfo = new HashMap<String, String>();
		String key;
		for(Object k :properties.keySet()){
			key = k.toString();
			appConfigInfo.put(key, properties.getProperty(key));
		}
	}
}
